#ifndef MYCONFIG_H
#define MYCONFIG_H

#include <QSettings>

class MyConfig
{
public:
    static void init();
    static QString getValue(const QString & key);
    static void setValue(const QString & key, const QString& value);
    //快捷方式
    static const QString & getHost(){return network_hostname_;};
    static const int & getPort(){return network_port_;};
    static const int & getCapturePerSecond(){return video_frame_per_second_;};
    static const int & getPixQuality(){return video_pix_quality_;};
    static const QString & getPixType(){return video_pix_type_;};

private:
    static QSettings* settings;
    static QString network_hostname_;
    static int network_port_;
    static int video_frame_per_second_;
    static int video_pix_quality_;
    static QString video_pix_type_;

};

#endif // MYCONFIG_H
